package com.liuxvru.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 测试对象 pro_test
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_test")
public class Test extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "test_id", type = IdType.AUTO)
    private Long testId;

    /** 标题 */
    @Excel(name = "标题")
    @TableField(value = "title")
    private String title;

    /** 项目id */
    @Excel(name = "项目id")
    @TableField(value = "project_id")
    private Long projectId;

    /** 结果 */
    @Excel(name = "结果")
    @TableField(value = "outcome")
    private String outcome;

    /** 优先级 */
    @Excel(name = "优先级")
    @TableField(value = "priority")
    private String priority;

    /** 测试计划ID */
    @Excel(name = "测试计划ID")
    @TableField(value = "test_plan_id")
    private Long testPlanId;

    /** 工作项ID */
    @Excel(name = "工作项ID")
    @TableField(value = "work_item_id")
    private Long workItemId;

    /** 测试状态 */
    @Excel(name = "测试状态")
    @TableField(value = "status")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    @TableField(value = "remarks")
    private String remarks;

    /** 执行人ID */
    @Excel(name = "执行人ID")
    @TableField(value = "executor_id")
    private Long executorId;

    /** 缺陷ID */
    @Excel(name = "缺陷ID")
    @TableField(value = "flaw_id")
    private Long flawId;

    /** 测试描述 */
    @Excel(name = "测试描述")
    @TableField(value = "description")
    private String description;

    /** 预估工时 */
    @Excel(name = "预估工时")
    @TableField(value = "estimated_working_hours")
    private Long estimatedWorkingHours;

    /** 登记工时 */
    @Excel(name = "登记工时")
    @TableField(value = "register_working_hours")
    private Long registerWorkingHours;

    /** 剩余工时 */
    @Excel(name = "剩余工时")
    @TableField(value = "surplus_working_hours")
    private Long surplusWorkingHours;

    /** 前置条件 */
    @Excel(name = "前置条件")
    @TableField(value = "preconditions")
    private String preconditions;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @TableField(value = "created_by")
    private Long createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    @TableField(value = "updated_by")
    private Long updatedBy;


}
